package com.liuyi.netty.im.commons.codes.data.event.message.playload;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 群系统类型消息载体
 *
 * @author Mr.Fmy
 * @since 2021-12-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PlayloadGroupSys extends Playload implements Serializable {

    private static final long serialVersionUID = 3095738747938684803L;


    public static final class PlayloadGroupSysBuilder {
        private String text;

        private PlayloadGroupSysBuilder() {
        }

        public static PlayloadGroupSysBuilder aPlayloadGroupSys() {
            return new PlayloadGroupSysBuilder();
        }

        public PlayloadGroupSysBuilder text(String text) {
            this.text = text;
            return this;
        }

        public PlayloadGroupSys build() {
            PlayloadGroupSys playloadGroupSys = new PlayloadGroupSys();
            playloadGroupSys.setText(text);
            return playloadGroupSys;
        }
    }
}
